import 'package:flutter/material.dart';

class TeamCommucity extends StatelessWidget {
  const TeamCommucity({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Stack(
      alignment: Alignment.bottomCenter,
      children: <Widget>[
        Container(
          width: MediaQuery.of(context).size.width * 0.97,
          height: MediaQuery.of(context).size.height * 0.3,
          decoration: BoxDecoration(
            gradient: LinearGradient(
              begin: Alignment.topLeft,
              end: Alignment.bottomRight,
              colors: [
                Color(0xFFF93A32),
                Color(0xFFFC7674),
              ],
            ),
            borderRadius: BorderRadius.circular(15.0),
          ),
        ),
        Positioned(
            top: 10.0,
            child: Container(
              width: MediaQuery.of(context).size.width * 0.97,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  Row(
                    crossAxisAlignment: CrossAxisAlignment.center
                    ,
                    children: <Widget>[
                    Text(
                      "社区团购",
                      style: TextStyle(
                          fontSize: 15.0,
                          color: Colors.white,
                          fontWeight: FontWeight.bold),
                    ),
                    Padding(padding: EdgeInsets.only(left: 10.0)),
                    Container(
                      width: 75.0,
                      height: 20.0,
                      decoration: BoxDecoration(
                          // color: Colors.white,
                          borderRadius: BorderRadius.circular(10.0)),
                      child: Row(
                        children: <Widget>[
                          Container(
                            width: 35.0,
                            decoration: BoxDecoration(
                                color: Color(0xFFBF902F),
                                borderRadius: BorderRadius.only(
                                    topLeft: Radius.circular(5.0),
                                    bottomLeft: Radius.circular(5.0))),
                            child: Text(
                              '次日',
                              textAlign: TextAlign.center,
                              style: TextStyle(
                                color: Color(0xFFFFFFFF),
                                fontSize: 12.0,
                              ),
                            ),
                          ),
                          Container(
                            width: 35.0,
                            decoration: BoxDecoration(
                                color: Colors.white,
                                borderRadius: BorderRadius.only(
                                    topRight: Radius.circular(5.0),
                                    bottomRight: Radius.circular(5.0))),
                            child: Text(
                              '自提',
                              textAlign: TextAlign.center,
                              style: TextStyle(
                                  color: Color(0xFFBF902F), fontSize: 12.0),
                            ),
                          ),
                        ],
                      ),
                    ),
                  ]),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: <Widget>[
                      Image.asset('image/logo.png'),
                      Padding(padding: EdgeInsets.only(left: 2.0)),
                      Text(
                        '附近的合格**下单了',
                        style:
                            TextStyle(fontSize: 13.0, color: Color(0xFFFFE7B6)),
                      )
                    ],
                  )
                ],
              ),
            )),
        Positioned(
          bottom: 5.0,
          child: Container(
            width: MediaQuery.of(context).size.width * 0.93,
            height: MediaQuery.of(context).size.height * 0.24,
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(15.0),
            ),
            child: Wrap(
              children: <Widget>[],
            ),
          ),
        )
      ],
    );
  }
}
